package com.my.lucky.repository;

import com.my.lucky.entity.WencaiKeyword;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WencaiKeywordRepository extends JpaRepository<WencaiKeyword, Long> {
    WencaiKeyword findByKeyword(String keyword);

    @Query("SELECT sys FROM WencaiKeyword sys")
    List<WencaiKeyword> findAllBy();
} 